package com.ccz.demo.design.template;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TemplateClient {
    public static void main(String[] args) {
        AbstractTemplate ticketTemplate = new TicketTemplate();
        String ticketRes = ticketTemplate.quoteResponse("1");
        System.out.println(ticketRes);

        System.out.println("-------------------");
        AbstractTemplate warrantTemplate = new WarrantTemplate();
        String warrantRes = warrantTemplate.quoteResponse("2");
        System.out.println(warrantRes);
    }
}
